home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / daemons / ipServer / raw.h < prev    next >
Encoding:
C/C++ Source or Header  |  1989-08-16  |  1.3 KB  |  43 lines

  1. /*
  2.  * raw.h --
  3.  *
  4.  *    External declarations of the raw IP socket routines.
  5.  *
  6.  * Copyright 1987 Regents of the University of California
  7.  * All rights reserved.
  8.  * Permission to use, copy, modify, and distribute this
  9.  * software and its documentation for any purpose and without
  10.  * fee is hereby granted, provided that the above copyright
  11.  * notice appear in all copies.  The University of California
  12.  * makes no representations about the suitability of this
  13.  * software for any purpose.  It is provided "as is" without
  14.  * express or implied warranty.
  15.  *
  16.  *
  17.  * $Header: /sprite/src/daemons/ipServer/RCS/raw.h,v 1.5 89/08/15 19:55:34 rab Exp $ SPRITE (Berkeley)
  18.  */
  19.  
  20. #ifndef _IPS_RAW
  21. #define _IPS_RAW
  22.  
  23. #include "sprite.h"
  24.  
  25. /*
  26.  * RAW_REQUEST_BUF_SIZE defines the size of the pseudo-device request
  27.  * buffer used to handle requests on raw sockets.   This limits the size
  28.  * of the datagram that can be written to the raw socket to 2048 bytes.
  29.  */
  30. #define RAW_REQUEST_BUF_SIZE    (2048)
  31.  
  32. extern ReturnStatus    Raw_SocketOpen();
  33. extern ReturnStatus    Raw_SocketClose();
  34. extern ReturnStatus    Raw_SocketRead();
  35. extern ReturnStatus    Raw_SocketWrite();
  36. extern int        Raw_SocketSelect();
  37. extern ReturnStatus    Raw_SocketBind();
  38. extern ReturnStatus    Raw_SocketConnect();
  39. extern ReturnStatus    Raw_SocketShutdown();
  40. extern void        Raw_Input();
  41.  
  42. #endif /* _IPS_RAW */
  43.